package firstline.example.andy.notebook;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Created by Andy on 2015/7/14.
 */
public class Detail extends Activity{

    private TextView title;
    private TextView content;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.detail);
        initView();
    }

    private void initView() {
        title= (TextView) findViewById(R.id.title);
        content= (TextView) findViewById(R.id.content);
        Intent intent=getIntent();
        String ti=intent.getExtras().getString("title");
        String co=intent.getExtras().getString("content");
        title.setText(ti);
        content.setText(co);
    }
}
